export const useFormProps = {
    item: {
        type: Object,
        default: () => ({})
    },
    formData: {
        type: Object,
        default: () => ({})
    },
    optionsKey: {
        type: Object,
        default: () => ({ label: 'text', value: 'value' })
    },
    readonly: {
        type: Boolean,
        default: false
    },
    disabled: {
        type: Boolean,
        default: false
    }
}

export const changeItem = (context, props) => {
    context.emit('event', {
        type: 'change',
        prop: props.item.prop,
        value: props.formData[props.item.prop]
    })
}


